<template>
	<view>
		<view @tap="jump(item.MiniUrl)" class="new-notice" v-for="(item,index) in noticeList" :key="index">
			<view class="title">
				<view class="title-img">
					<view class="title-img-circle"></view>
				</view>
				<view class="title-lable">
					<view class="title-school">{{item.SchoolName}}</view>
					<view class="title-time">{{item.CreateShowIndex}}</view>
				</view>
			</view>
			<view class="content">
				<view class="content-bg">
					<view class="content-type">{{item.TypeShow}}</view>
					<view class="content-student">To{{item.StudentName}}的家长</view>
				</view>
			</view>
		</view>
		<view class="empty" v-if="noticeList.length == 0">
			<view class="empty-bg">
				<view class="empty-title">暂无新通知</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		props: ['noticeList'],
		data() {
			return {
			
			}
		},
		methods: {

			jump(url) {
				uni.navigateTo({
					url: url
				})
			}

		}
	}
</script>

<style>
	.new-notice {
		width: 670rpx;
		height: 340rpx;
		background-color: #ffffff;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.title {
		width: 80%;
		display: flex;
		height: 140rpx;
		align-items: center;
	}

	.title-img {
		margin-right: 20rpx;
	}

	.title-img-circle {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
		background-color: #000000;
	}

	.title-lable {
		display: flex;
		flex-direction: column;
	}

	.title-time {
		font-size: 28rpx;
		margin-top: 10rpx;
	}

	.content {
		width: 89%;
		height: 190rpx;
		background-image: url("https://public-1300796766.cos.ap-guangzhou.myqcloud.com/mini/1.jpg");
		background-size: cover;
		background-position: center;
		border-radius: 10rpx;
	}

	.content-bg {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		height: 100%;
		background-color: rgba(254, 201, 1, 0.5);
	}

	.content-type {
		width: 100%;
		height: 100rpx;
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}

	.content-student {
		width: 100%;
		height: 74rpx;
		display: flex;
		justify-content: flex-end;
		align-items: flex-end;
		font-size: 28rpx;
		padding-right: 30rpx;
	}

	.empty {
		width: 650rpx;
		height: 190rpx;
		background-image: url("https://public-1300796766.cos.ap-guangzhou.myqcloud.com/mini/1.jpg");
		background-size: cover;
		background-position: center;
		border-radius: 10rpx;
		margin-top: 230rpx;
	}

	.empty-bg {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 100%;
		background-color: rgba(254, 201, 1, 0.5);
	}
</style>
